<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/25
 * Time: 下午6:11
 */

namespace src\base;

use src\base\api\Registry;

/**
 * 对请求数据进行setter ,包括 http请求命令行请求
 * Class Request
 * @package src\base
 */
class Request extends Registry{
    private static $instance;
    private function __construct()
    {
        foreach($_SERVER['argv'] as $key=>$value)
            self::$objects[$key] = $value;
    }

    static function getInstance(){
        if(!self::$instance)
            self::$instance = new self();
        return self::$instance;
    }


}